<?php
/**
 * Created by PhpStorm.
 * Author: Shadow
 * Date: 2022/6/5
 * Time: 10:26 上午
 * description: list.blade.php
 */
?>


<h2>数据列表</h2>
<table>
    <tr>
        <th>ID</th>
        <th>标题</th>
        <th>发布日期</th>
        <th>操作</th>
    </tr>
    @foreach($data as $value)
        <tr>
            <td>{{$value->id}}</td>
            <td><a href="/detail?id={{$value->id}}">{{$value->title}}</a></td>
            <td>{{$value->create_time}}</td>
            <td><a href="/delete?id={{$value->id}}">删除</a><a href="/detail?id={{$value->id}}">查询详情</a></td>
        </tr>
    @endforeach
</table>

{{$data->links()}}
